/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package model;

import java.util.Set;

/**
 * The Class Keyword.
 */
public class Keyword implements java.io.Serializable {
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;
	
	/** The id. */
	private Integer id;
	
	/** The keyword. */
	private String keyword;
	
	/** The mediums. */
	private Set<Medium> mediums;

	/**
	 * Instantiates a new keyword.
	 */
	public Keyword() {
	}

	/**
	 * Instantiates a new keyword.
	 * 
	 * @param keyword
	 *            the keyword
	 * @param mediums
	 *            the mediums
	 */
	public Keyword(String keyword, Set<Medium> mediums) {
		this.keyword = keyword;
		this.mediums = mediums;
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Gets the keyword.
	 * 
	 * @return the keyword
	 */
	public String getKeyword() {
		return this.keyword;
	}

	/**
	 * Sets the keyword.
	 * 
	 * @param keyword
	 *            the new keyword
	 */
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	/**
	 * Sets the mediums.
	 * 
	 * @param mediums
	 *            the new mediums
	 */
	public void setMediums(Set<Medium> mediums) {
		this.mediums = mediums;
	}

	/**
	 * Gets the mediums.
	 * 
	 * @return the mediums
	 */
	public Set<Medium> getMediums() {
		return mediums;
	}
}
